package org.jjj.user.mapper;

import org.jjj.user.domain.Wxuser;
import org.jjj.basic.mapper.IBaseMapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author jiangjianjun
 * @since 2022-11-17
 */
public interface WxuserMapper extends IBaseMapper<Wxuser> {
    /**
     * 根据openid去查询微信用户是否存在
     * @param openid
     * @return
     */
    Wxuser selectByOpenId(String openid);

    /**
     * 根据用户id去查询微信用户是否已经绑定
     * @param userId
     * @return
     */

    Wxuser getWxuserByUserId(Long userId);
}
